<style type="text/css">
.case_center samp{ font-family: '微软雅黑';}

</style>

<div class="subnav">
    <ul class="crumbs">
        <li>我的位置：</li>
        <li><a href="{$site_url}">{$site_name} </a> </li>
        <li><a href="{$Categorys[$catid]['url']}">&nbsp; &gt; {$Categorys[$catid]['catname']} </a></li>
        <div class="clear"></div>
    </ul>
 
</div>
<div class="main">

    <table class="classify">
        <!--<tr>
            <th>风格：</th>
            <td><ul>
                <li><a href="{:unsetParam('style',$url_s)}" <?php if(empty($_GET['style'])){ ?> class="whole" <?php } ?> >不限</a></li>
                <YP:list name="Label" where="genre=21" order="listorder asc" id="r" limit="50">
                    <li><a <?php if($_GET['style']==$r['id']){ ?> class="whole" <?php } ?> href="{:unsetParam('style',$url_s)}&style={$r['id']}">{$r['title']}</a></li>
                </YP:list>
                <div class="clear"></div>
            </ul></td>
        </tr>-->
        <tr>
            <th>类型：</th>
            <td><ul>
                <li><a href="{:unsetParam('itemType',$url_s)}" <?php if(empty($_GET['itemType'])){ ?> class="whole" <?php } ?>>不限</a></li>
                <YP:list name="Label" where="genre=17" id="r" order="listorder asc" limit="50">
                    <li><a <?php if($_GET['itemType']==$r['id']){ ?> class="whole" <?php } ?> href="{:unsetParam('itemType',$url_s)}&itemType={$r['id']}">{$r['title']}</a></li>
                </YP:list>
                <div class="clear"></div>
            </ul></td>
        </tr>
        
        <!--<tr>
            <th>造价：</th>
            <td><ul>
                <li><a href="{:unsetParam('budget',$url_s)}" <?php if(empty($_GET['budget'])){ ?> class="whole" <?php } ?>>不限</a></li>
                <YP:list name="Label" where="genre=19" id="r" order="listorder asc" limit="50">
                    <li><a <?php if($_GET['budget']==$r['id']){ ?> class="whole" <?php } ?> href="{:unsetParam('budget',$url_s)}&budget={$r['id']}">{$r['title']}</a></li>
                </YP:list>
                <div class="clear"></div>
            </ul></td>
        </tr>-->
        <tr>
            <th>面积：</th>
           <td><ul style=" border-bottom: none;">
            <li><a href="{:unsetParam('itemArea',$url_s)}" <?php if(empty($_GET['itemArea'])){ ?> class="whole" <?php } ?>>不限</a></li>
            <YP:list name="Label" where="genre=18" id="r" limit="50" order="listorder asc">
                <li><a <?php if($_GET['itemArea']==$r['id']){ ?> class="whole" <?php } ?> href="{:unsetParam('itemArea',$url_s)}&itemArea={$r['id']}">{$r['title']}</a></li>
            </YP:list>
            <div class="clear"></div>
        </ul></td>
        </tr>
    </table>
     <ul class="case">
     
               <volist name="list" id="r"  key="k">
                   <?php $user = M('User')->where('id='.$r['userid'])->find(); ?>
                    <li >
                       <a href="index.php?g=Home&m=Case&a=show&id={$r.id}"> <img src="{$r.thumb_list}" class="caseimg" alt="" /></a>
                        
                  <div class="case_center">
                    
                    <div class="user"  >
                         <a href="index.php?m=User&a=index&id={$user.id}"><img src="{$user['avatar']}" alt=""  class="img"/></a>
                        <span>{$user['username']}</span>
                      <div class="find none" >
                        <div class="find_user">
                             <a href="index.php?m=User&a=index&id={$user.id}"><img src="{$user['avatar']}" alt=""  /></a>
                            <a class="a" href="index.php?g=user&m=Guestbookadd&a=add&designid={$r.userid}">找TA设计</a>
                        </div>
                         
                        <h4>设计师：{$user['username']}</h4>
                        <p>设计费用：<a class="samp"><YP:list name="Type" order="typeid" where="keyid=34" id="val" limit="50"><?php echo $user['charge'] == $val['typeid'] ? $val['name'] : ''; ?></YP:list>/m²</a></p>
                        <p>所在地：{$user['province']|jgarea=###} {$user['city']|jgarea=###}</p>
                      </div>
                    </div>
                    <h4>{$r['title']}</h4>
                    <p> {$r['describe']|str_cut=###,35}</p>
                     <samp>类型：
                         <YP:list name="Label" where="genre=17" id="v" limit="50">
                         <?php echo $r['itemType'] == $v['id'] ? $v['title'] : ''; ?>
                         </YP:list>
                         </samp>
                     <samp>风格：
                         <YP:list name="Label" where="genre=21" id="v" limit="50">
                             <?php echo $r['style'] == $v['id'] ? $v['title'] : ''; ?>
                         </YP:list>
                     </samp><br />
                     <samp> 面积：{$r.itemArea}㎡</samp>
                     <samp> 造价：<?php echo $r['budget']?>万元</samp>
                </div>
                 </li>
                </volist>


                    <div class="clear"></div>
     </ul>
   


        <ul class="paging" style=" height:30px; text-align:center">
            <ul>
           {$pages}
           </ul>
        </ul>
</div>



<script>
//设计师
    $(".user").mouseover(function (){
        $(this).find('.find').css('display','block');
    });

    $(".user").mouseout(function (){
        $(this).find('.find').css('display','none');
    });






</script>



                                                                                                                                                                                                                                                                                                